
<?php
if (!defined('APP_PATH')) {
	define('APP_PATH', $_SERVER['DOCUMENT_ROOT']."/bdACPA");
}
require_once(APP_PATH.'/required.php');
$message = null;
$puce = new Puce();
$puce->iddossier = intval($_REQUEST['idDossier']);
$puce->analyse = $_REQUEST['analyse'];
$puce->formulechromosomique = $_REQUEST['formulechromosomique'];
$puce->idpuce = intval($_REQUEST['idPuce']);
$puce->idtypeprelevement = intval($_REQUEST['typePrelevement']);
$puce->qualite = $_REQUEST['qualite'];
$puce->idtypepuce = intval($_REQUEST['typePuce']);
$puce->nbmqdeviant = $_REQUEST['nbmqdeviant'];
$puce->resolution = $_REQUEST['resolution'];

if ($_REQUEST['idPuce'] == null || $_REQUEST['idPuce'] == 0){
	$result = $PUCE_DAO->ajouter_puce($puce);
} else {
	$result = $PUCE_DAO->modifier_puce($puce);
}

unset($puce);

echo $message;

?>

